#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<vector>
#include"RBTree.h"


int main()
{
	

	int v[] = {5,7,9,3,4,6,2,15};

	lxp::RBTree<int, int> rbt;
	for (auto e : v)
	{
		rbt.Insert(make_pair(e, e));
		cout << "Insert:" << e << "->" << rbt.IsBalance() << endl;
	}
	//rbt.Print();

	cout << rbt.IsBalance() << endl;
	cout << rbt.Height() << endl;
	cout << rbt._rotateCount << endl;



	return 0;
}